Skip to content

Adding in SQL commands to prepare an instance to join an existing shard#4528

Merged
sougou merged 1 commit intovitessio:masterfrom
planetscale:dk-fix-mariadb-init
Jan 16, 2019
Merged

Adding in SQL commands to prepare an instance to join an existing shard#4528
sougou merged 1 commit intovitessio:masterfrom
planetscale:dk-fix-mariadb-init

Conversation

@dkhenry
Copy link
Copy Markdown
Contributor

@dkhenry dkhenry commented Jan 15, 2019

There is an issue with MariaDB 10.3 joining an existing shard. There appears to be existing transactions in the binlog from the database being initialized. These prevent the new instance from joining the shard. This PR adds additional commands to RESET replication before the database starts. This should only run when the system detects an empty database.

Signed-off-by: Dan Kozlowski koz@planetscale.com

Signed-off-by: Dan Kozlowski <koz@planetscale.com>
@dkhenry dkhenry requested a review from sougou as a code owner January 15, 2019 22:29
@sougou sougou merged commit e86d27f into vitessio:master Jan 16, 2019
@harshit-gangal harshit-gangal deleted the dk-fix-mariadb-init branch July 17, 2020 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants